/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2024-03-17
 * Time: 1:11
 */
public class QueueAchieveStackTest {
    public static void main(String[] args) {
        QueueAchieveStack queueAchieveStack = new QueueAchieveStack();
        queueAchieveStack.push(1);
        queueAchieveStack.push(2);
        //弹出栈顶元素
        System.out.println(queueAchieveStack.top());
        //查看栈顶元素
        System.out.println(queueAchieveStack.pop());
    }
}
